<?=$this->form ( $this->element->getName (), $this->element->getAttribs (), false ); ?>
<?php
	if (! $this->element->isStatic ()) :
        echo $this->renderElement ( $this->element->borrarbusqueda );
        echo $this->renderElement ( $this->element->codusuario );
        echo $this->renderElement ( $this->element->codinformacion );
        echo $this->renderElement ( $this->element->tipo );
     endif;
    
    if (isset($this->element->coddocumento)){
        echo $this->renderElement ( $this->element->coddocumento);
    }
    if (isset($this->element->codinstitucion)){
        echo $this->renderElement ( $this->element->codinstitucion );
    }
    
    if (isset($this->element->codubicacion)){
        echo $this->renderElement ( $this->element->codubicacion );
    }
    
?>
<table width="100%"  align="center" class="iceDatTbl zebra">
	<?php
		foreach ($this->element as $elemento){
		    if (!in_array($elemento->getName(),array("borrarbusqueda","codusuario","codinformacion","tipo","btnSubmit","actualmente","codinstitucion","codubicacion","coddocumento"))){
		        if ($elemento->getName()=="fecharetiro"){
		            $elemento->setLabel("*Fecha retiro :");
		        }
		        ?>
				<tr>
					<th width="40%"><?php echo $elemento->renderLabel(); ?></th>
					<td width="60%"><?php
					    echo $this->renderElement($elemento);
					    if($elemento->getName()=="fecharetiro" && isset($this->element->actualmente)){
//					        echo " &nbsp;&nbsp;&nbsp;Actualmente : ".$this->renderElement($this->element->actualmente);
					        //$this->element->actualmente->getOptions();
                            $checked ="";
					        $chequeo = $this->element->actualmente->getvalue();
					        if ($chequeo=="S") $checked = "checked=\"checked\"";
					        echo "&nbsp;&nbsp;&nbsp;Actualmente : <input type=\"checkbox\" name=\"actualmente\" id=\"actualmente\" value=\"S\" {$checked} >";
					    }
					    echo $elemento->renderErrors ();
					?></td>
				</tr>
				<?php
		    }
		}
	if (! $this->element->isStatic ()) :
	?>
    <tr>
		<td  class="iceDatTblRow2" colspan="2" style="text-align: center;">
        <?php
		echo $this->renderElement ( $this->element->btnSubmit );
//		Zend_Debug::dump($this->element->btnSubmit);
        echo $this->element->btnSubmit->getDescription();
		?>
        </td>
	</tr>
	<?php
	endif;
	?>
</table>
</form>